import request from '@/utils/request'

export function getDomainList(query) {
  return request({
    url: '/pagination/domain/getList',
    method: 'post',
    data: query
  })
}
export function getDomainUsableList(query) {
  return request({
    url: '/pagination/domain/getUsableList',
    method: 'post',
    data: query
  })
}

export function getDomainDetail(id) {
  return request({
    url: '/pagination/domain/getDetail',
    method: 'post',
    data: id
  })
}

export function saveDomain(id) {
  return request({
    url: '/pagination/domain/save',
    method: 'post',
    data: id
  })
}

export function deleteDomainByID(id) {
  return request({
    url: '/pagination/domain/delete',
    method: 'post',
    data: id
  })
}

export function removeDomainByID(id) {
  return request({
    url: '/pagination/domain/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByDomainID(formdata) {
  return request({
    url: '/pagination/domain/change-status',
    method: 'post',
    data: formdata
  })
}

export function getDomainAvabile() {
  return request({
    url: '/pagination/domain/getAvailable',
    method: 'post'
  })
}

